package com.cap.bts.crmdp.dealer.coupon.domain;

import java.io.Serializable;
import javax.persistence.*;

import com.cap.bts.framework.common.domain.BaseDomain;

/**
 * The persistent class for the tm_raw_ticket_line_def database table.
 * 
 */
@Entity
@Table(name = "TM_RAW_TICKET_LINE_DEF")
@AttributeOverrides({
                     @AttributeOverride(name = "createBy", column = @Column(name = "CREATE_BY")),
                     @AttributeOverride(name = "createDate", column = @Column(name = "CREATE_DATE", nullable = false)),
                     @AttributeOverride(name = "lastUpdateBy", column = @Column(name = "LAST_UPDATE_BY")),
                     @AttributeOverride(name = "lastUpdateDate", column = @Column(name = "LAST_UPDATE_DATE")) })
public class TicketLine extends BaseDomain implements Serializable {
    private static final long serialVersionUID = 1L;

    private Long              id;

    private String            itemName;

    private double            prepayAmount;

    private Integer           quantity;

    private Long              ticketDefId;
    
    public TicketLine() {
    }

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Column(name = "ITEM_NAME")
    public String getItemName() {
        return this.itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    @Column(name = "PREPAY_AMOUNT")
    public double getPrepayAmount() {
        return this.prepayAmount;
    }

    public void setPrepayAmount(double prepayAmount) {
        this.prepayAmount = prepayAmount;
    }

    @Column(name = "QUANTITY")
    public Integer getQuantity() {
        return this.quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }


    @Column(name="TICKET_DEF_ID")
    public Long getTicketDefId() {
        return ticketDefId;
    }

    public void setTicketDefId(Long ticketDefId) {
        this.ticketDefId = ticketDefId;
    }

}